package com.ss;

import java.sql.Connection;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Calendar;

public class predictor {
Oscillator osc;
Monte_Carlo mc;
Bayesian bay;
public void main(String args[])//, int term, String symbol, Oscillator osc)
{
int term = 0;
String symbol = "AMD";
//Date date2= date;
float term2 = term;
   String name = symbol;
   int stoc_val[]={};
   Calendar cal = Calendar.getInstance();
Dbconnection db = new Dbconnection();
Connection conn=db.dbConnect("jdbc:sqlserver://localhost:1433;", "sa","");
int x1 = 0,x2,x,x3; //short term
int y1;  //long term
if(term2==0)
//period = 14;
//Call the Short term method
x1 = osc.Oscillator_m(term, symbol);
x2 = mc.Monte_Carlo_m(symbol);
x = x1+x2;
//x1 = Oscillator(int term2, String symbol)
// x2 = Monte_Carlo(String symbol);
// x3 = Bayesian(String symbol);
if(term2==1)
//period = 60;
//Call the long term method
y1 = osc.Oscillator_m(term, symbol);
}
}